package com.gzhryc.shared_device.base.enums;

public enum EDiscountType {

	Coupon(1, "优惠券")
    , FreeMember(2, "白名单");

    private final Integer index;
    private final String note;

    EDiscountType(Integer index, String note) {
        this.index = index;
        this.note = note;
    }

    public Integer index() {
        return index;
    }

    public String note() {
        return note;
    }

    public static String note(Integer index) {
    	EDiscountType[] temp = EDiscountType.values();
        for (EDiscountType item : temp) {
            if (item.index.equals(index)) {
                return item.note;
            }
        }
        return null;
    }
}
